﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Configuration;
using Apollo;

namespace Apollo.Website
{
    public partial class Controls_Header : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                ImageLogo.ImageUrl = Apollo.Application.ConfigurationSection.Apollo.LogoPath;
                LabelClientName.Text = Apollo.Application.ConfigurationSection.Apollo.ClientName;
                LabelApplication.Text = Apollo.Application.ConfigurationSection.Apollo.Version;

                if (this.Page.User.Identity.Name != Apollo.Application.CurrentUser.Name)
                {
                    LabelImpersonalted.Visible = true;
                    LabelImpersonalted.Text = " [as: " + Apollo.Application.CurrentUser.Name + "]";
                }
            }
        }
        protected void LoginStatus1_LoggedOut(object sender, EventArgs e)
        {

        }
    }
}